package router

import (
	"github.com/gin-gonic/gin"
	"online-medical-consultation/pkg"
)

func LoadRouter(r *gin.Engine) {
	r.POST("/send/sms", SendSms)
	//r.POST("/upload", Upload)
	r.POST("/user/login", UserLogin)
	r.POST("/hospital/list", HospitalList)
	r.POST("/hospital/es", HospitalToEs)
	r.POST("/search/hospital/es", SearchHospitalEs)
	r.Use(pkg.JWTAuth("2210a"))
	r.POST("/add/patient", AddPatient)
	r.GET("/websocket", Websocket)
	r.POST("/department/list", DepartmentList)
	r.POST("/search/department", SearchDepartment)
	r.POST("/patient/list", PatientList)
	r.POST("/docker/list", DockerList)
	r.POST("/create/order", CreateOrder)
	r.POST("/order/list", OrderList)
	r.POST("/pay/time", PayTime)

}
